Repository navigation
feat(native): fold a finished chat turn to its answer and its files - #1276
Merged
Merged
Conversation
A long turn weighed every text on the way the same as its conclusion. When a turn ends, its calls, thoughts and interim texts now fold under one line over the answer, and the files it changed stand once each under it. Rows share one left edge, and the closing line and the millisecond times are gone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
In a long turn every interim text ("now the tests") weighed the same as the conclusion, the same file could be listed several times, rows started on four different left edges, and the turn's end repeated counts already on screen.
Worked for 4m 6s. A click shows them in order, muted, opening under the line where it was clicked. What the person said mid-turn, answers to questions, plans,!commands, compactions and notices never fold.The fold is one pass over the rows the chat already builds (
chat_turn_fold.go), shared by every provider's chat. "Copy conversation up to here" still copies the folded work, in the order it went.Copy
Worked for {time}/Worked: the only way back to the work, and the turn's total time; replaces the closing line's count.Stopped after {time},Failed after {time}: replace the closing line's glyph, which had no visible words.Changed {count} files: the head of the list, replacingEDITED 3 files.Show {count} more files: shown only past six files, so a long list does not push the answer out of view.no changesand the millisecond unit are removed.Tests
EDITEDhead, the swap of the live line into the closing line, and the milliseconds. Tests of calls inside a finished turn open its fold first.BenchmarkLongChat*).